package com.ct.rbac.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ct.rbac.orm.SysUserDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SysUserMapper extends BaseMapper<SysUserDO> {

    /**
     * 根据系统id查询用户列表信息并分页
     * @param page
     * @param queryWrapper
     * @return
     */
    Page<SysUserDO> findUserListBySystemId(Page<SysUserDO> page, @Param(Constants.WRAPPER)Wrapper<SysUserDO> queryWrapper);

    Page<SysUserDO> findUserPage(Page<SysUserDO> page, @Param(Constants.WRAPPER)Wrapper<SysUserDO> queryWrapper);
}
